package me.fanchaoo.web.request;

import lombok.Data;
import me.fanchaoo.enums.EnumProvider;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class EmailLoginRequest {


        @NotBlank
        @Length(max = 50)
        private String username;


        @NotBlank
        @Length(max = 50)
        private String password;


        private EnumProvider provider;
//        private String provider;

        @NotBlank
        @Length(max = 255)
        private String randomKey;
    }
